package com.fp.system;

import com.fp.system.expression.*;

/**
 * 基于具体时间的cron表达式封装实体
 * <p>
 * Created by haibiao.zhang on 17/1/5.
 */
public class CronExpressionDto {

    /**
     * 年份
     */
    private YearCronExpression year;

    /**
     * 星期
     */
    private WeekCronExpression week;

    /**
     * 月份
     */
    private MonthCronExpression month;

    /**
     * 日期
     */
    private DayCronExpression day;

    /**
     * 小时
     */
    private HourCronExpression hours;

    /**
     * 分钟
     */
    private MinuteCronExpression minutes;

    /**
     * 秒钟
     */
    private SecondCronExpression seconds;

    public YearCronExpression getYear() {
        return year;
    }

    public void setYear(YearCronExpression year) {
        this.year = year;
    }

    public WeekCronExpression getWeek() {
        return week;
    }

    public void setWeek(WeekCronExpression week) {
        this.week = week;
    }

    public MonthCronExpression getMonth() {
        return month;
    }

    public void setMonth(MonthCronExpression month) {
        this.month = month;
    }

    public DayCronExpression getDay() {
        return day;
    }

    public void setDay(DayCronExpression day) {
        this.day = day;
    }

    public HourCronExpression getHours() {
        return hours;
    }

    public void setHours(HourCronExpression hours) {
        this.hours = hours;
    }

    public MinuteCronExpression getMinutes() {
        return minutes;
    }

    public void setMinutes(MinuteCronExpression minutes) {
        this.minutes = minutes;
    }

    public SecondCronExpression getSeconds() {
        return seconds;
    }

    public void setSeconds(SecondCronExpression seconds) {
        this.seconds = seconds;
    }
}

